package examples.lesson2;

public class Car
{
	public String bodyType;
	public int currentSpeed = 0;
	public int maxSpeed;
	public int weight;
	public String transmissionMode = "N";
	private boolean isStarted = false;
	
	public Car()
	{
		System.out.println("You created a new car");
	}
	
	public Car(String p_bodyType)
	{
		bodyType = p_bodyType;
		System.out.println("You created a new car with body: " + p_bodyType);
	}
	
	public void start()
	{
		if(isStarted)
		{
			System.out.println("Car has been already started");
		}
		else
		{
			currentSpeed = 100;
			System.out.println("Start on mode: " + transmissionMode);
			isStarted = true;
		}	
	}
	
	public void start(String p_transmissionMode)
	{
		System.out.println("Start on mode: " + p_transmissionMode);
	}	
	
	public void stop()
	{
		currentSpeed = 0;
		System.out.println("Car was stopped");
	}
	
	public void turnOnLight()
	{
		System.out.println("Lights were turned on");
	}
	
	public int showSpeed()
	{
		return currentSpeed;
	}
	
	
	
}
